﻿// 差分.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <iostream>
#include "一维差分.h"

using DataStructureAndAlgorithm::Differential::OneDifferential;

int main()
{
    std::vector<int> v{ 1,2,5,1,7 };
    OneDifferential diff(v);
    diff.insert(3,0, 2);
    diff.getAns();
    diff.insert(3, 0, 2);
    diff.getAns();
}